Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload unfinished job/step logs from runner on cancellation timeout #255

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

TingluoHuang
Copy link
Member

@@ -40,7 +39,6 @@ public override void Initialize(IHostContext hostContext)
{
base.Initialize(hostContext);
_totalLines = 0;
_pageId = Guid.NewGuid().ToString();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't really need a new guid for each page, we can leverage the timeline record id for each steps, those are already unique per step.


try
{
var systemConnection = message.Resources.Endpoints.SingleOrDefault(x => string.Equals(x.Name, WellKnownServiceEndpointNames.SystemVssConnection));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pull the cred from the job message, we will use this cred to talk to actions service and upload the log.

}

var record = timeline.Records.FirstOrDefault(x => x.Id == logRecordId);
if (record != null)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only upload log files to timeline records for this job.

Copy link
Collaborator

@thboop thboop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Clean

@TingluoHuang TingluoHuang merged commit 584f6b6 into master Jan 6, 2020
@TingluoHuang TingluoHuang deleted the users/tihuang/logoncancel branch January 6, 2020 18:04
AdamOlech pushed a commit to antmicro/runner that referenced this pull request Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants